<include file="Index:header" />
<import file="Common.validate.jquery#validate#min"/>
<style>
<!--
    .video-text{
		width:350px;
    }
-->
</style>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a href="{:U('Admin/Member/index')}" class="btn">成员管理</a>
		<a href="{:U('Admin/Member/edit')}" class="btn  btn-primary"><i class="icon-plus"></i>添加成员</a>
	</div>
	<br />
	<div class="row-fluid">
		<div class="block span12">
		
			<ul class="nav nav-tabs">
				<li><a
					href="{:U('Admin/Member/edit',array('id'=>$data['uid']))}">基本资料</a></li>
				<li><a href="{:U('Admin/Member/editPhoto',array('id'=>$data['uid']))}">相册</a></li>
				<li class="active"><a href="{:U('Admin/Member/editVideo')}">成员视频</a></li>
			</ul>
			<form action="{:U('Admin/Video/edit',array('id'=>$data['vid']))}" method="post" class="kdform" id="newsform">
				<ul>
					<li>
						<p>注意：目前只支持上传到优酷的视频</p>
					</li>
					<li><label>标题:</label>
						<input type="text" name="title" value="{$data.title}" class="video-text" />
						<input type="hidden" name="uid" value="{$data.uid}" />
						<span class="require-text">*</span>
						<span class="error"></span>
					</li>
					<li>			
						<label>视频播放地址:</label> 
						<input type="text" name="play_url" value="{$data.play_url}" class="video-text" />
						<span class="require-text">*</span>
						<span class="error"></span>
					</li>					
					<li>			
						<label>视频描述:</label> 
						<textarea name="content" class="editor">{$data.description}</textarea>
						<span class="error"></span>
					</li>
					<li>
						<label><input type="checkbox" name="publish" value="1" checked="checked"/> 发布: <small>如果该选项没有选中,新闻不会发布到前台</small></label>
					</li>
					
					<li>
						<label><input type="checkbox" name="recommend" value="1" checked="checked"/> 推荐: <small>是否显示在前台推荐</small></label>
					</li>					
					<li>
						<input type="button" value="保存" class="btn" id="saveBtn"/>	
					</li>
				</ul>
				
			</form>
		</div>
	</div>
</div>

<include file="Public:editor" />
<script>
	$().ready(function() {
		$("#saveBtn").click(function(){
			formsubmit("#newsform");
		})
	});
</script>

<include file="Index:footer" />